#pragma once
#include "setprecisetimer.h"

class CWorkTimer
{
public:
	CWorkTimer(void);
	~CWorkTimer(void);
protected:
	CSetPreciseTimer* m_pTimer;
	static void CALLBACK WorkTimerProc(UINT uTimerID, UINT uMsg, 
		DWORD dwUser, DWORD dw1, DWORD dw2);
	virtual void TimerFunction(UINT uTimerID);

	HWND m_hWnd;
	BOOL m_bSkip;
public:
	void SetWorkTimer(UINT nInterval, UINT nResolution);
	void KillWorkTimer(void);
	void AttachWnd(HWND hWnd);

	void SkipWorkOrNO(BOOL bSkip);
	BOOL GetSkipStatus(void);
	void SetWorkTimer(UINT nInterval);
};
